import React, { useState } from 'react';
import { FundTwoTone } from '@ant-design/icons';
export default function HookFunc() {
  const [username, setUsername] = useState('张三');
  return (
    <>
      <div>hook函数练习</div>
      <br />
      <h1>姓名：{username}</h1>
      <br />
      <br />
      <button onClick={() => setUsername('李四')}>修改人名</button>
      <FundTwoTone spin />
    </>
  );
}
